Methods and systems for tracking a torsional orientation and position of an eye

ABSTRACT

Methods and systems for tracking a position and torsional orientation of a patient&#39;s eye. In one embodiment, the present invention provides methods and software for registering a first image of an eye with a second image of an eye. In another embodiment, the present invention provides methods and software for tracking a torsional movement of the eye. In a particular usage, the present invention tracks the torsional cyclorotation and translational movement of a patient&#39;s eye so as to improve the delivery of a laser energy to the patient&#39;s cornea.

CROSS-REFERENCE TO RELATED APPLICATIONS

[0001] The present application claims benefit to U.S. Provisional Patent Application No. 60/384,653, filed May 3, 2002, the complete disclosure of which is incorporated herein by reference.

BACKGROUND OF THE INVENTION

[0002] The present invention relates generally to laser eye surgery methods and systems. More specifically, the present invention relates to registering a first image of a patient's eye with a second image of a patients eye and to tracking a position and a torsional orientation of the patient's eye during laser eye surgery so as to register a customized ablation profile with the patient's eye.

[0003] Known laser eye procedures generally employ an ultraviolet or infrared laser to remove a microscopic layer of stromal tissue from the cornea of the eye to alter the refractive characteristics of the eye. The laser removes a selected shape of the corneal tissue, often to correct refractive errors of the eye. Ultraviolet laser ablation results in photo-decomposition of the corneal tissue, but generally does not cause significant thermal damage to adjacent and underlying tissues of the eye. The irradiated molecules are broken into smaller volatile fragments photochemically, directly breaking the intermolecular bonds.

[0004] Laser ablation procedures can remove the targeted stroma of the cornea to change the cornea's contour for varying purposes, such as for correcting myopia, hyperopia, astigmatism, and the like. Control over the distribution of ablation energy across the cornea may be provided by a variety of systems and methods, including the use of ablatable masks, fixed and moveable apertures, controlled scanning systems, eye movement tracking mechanisms, and the like. In known systems, the laser beam often comprises a series of discrete pulses of laser light energy, with the total shape and amount of tissue removed being determined by the shape, size, location, and/or number of a pattern of laser energy pulses impinging on the cornea. A variety of algorithms may be used to calculate the pattern of laser pulses used to reshape the cornea so as to correct a refractive error of the eye. Known systems make use of a variety of forms of lasers and/or laser energy to effect the correction, including infrared lasers, ultraviolet lasers, femtosecond lasers, wavelength multiplied solid-state lasers, and the like. Alternative vision correction techniques make use of radial incisions in the cornea, intraocular lenses, removable corneal support structures, thermal shaping, and the like.

[0005] Known corneal correction treatment methods have generally been successful in correcting standard vision errors, such as myopia, hyperopia, astigmatism, and the like. However, as with all successes, still further improvements would be desirable. Toward that end, wavefront measurement systems are now available to measure the refractive characteristics of a particular patient's eye. By customizing an ablation pattern based on wavefront measurements, it may be possible to correct minor refractive errors so as to reliably and repeatably provide visual accuities greater than 20/20. Alternatively, it may be desirable to correct aberrations of the eye that reduce visual acuity to less than 20/20. Unfortunately, these measurement systems are not immune from measurement error. Similarly, the calculation of the ablation profile, the transfer of information from the measurement system to the ablation system, and the operation of the ablation system all provide opportunities for the introduction of errors, so that the actual visual accuities provided by real-world wavefront-based correction systems may not be as good as might be theoretically possible.

[0006] One potential problem with the use of wavefront measurements is aligning the customized laser ablation pattern with the patient's eye. In order to achieve precise registration between the wavefront measurement and the treatment to be delivered to the patient's eye, the wavefront measurement and the eye should share a common coordinate system. For example, when the wavefront measurement is taken, the patient will generally be in a seated position. However, when the laser eye surgery is being performed, the patient will generally be in a supine position, which may not position the patient's eye in the same position or torsional orientation as the eye when the wavefront measurement was taken.

[0007] Moreover, even if the patient is positioned in the same initial position and/or torsional orientation, the eye often undergoes a cyclotorsional rotation. If this rotation is not properly accounted for, the benefits of the refractive surgery would be reduced, particularly in cases of astigmatism and other non-rotationally symmetric aberrations. It has been reported by numerous investigators and researchers that human eyes may undergo torsional movements, usually within 15 degrees from the resting position, but typically it is around 2 to 7 degrees around their axes, during normal activities. The amount of rotation depends on the individual, the stimulus being viewed, and it may depend on the motion and orientation of the person's head and body. Such torsional movement of the patient's eye during the ablation may cause a non-optimal delivery of the customized ablation pattern to the patient's eye, particularly in cases of astigmatism and other-non-rotationally symmetric aberrations.

[0008] In light of the above, it would be desirable to provide methods and devices which can accurately register the patient's eye with the customized. ablation pattern. Additionally, it would be desirable to account for the positional movement and torsional rotation of the patient's eyes during a laser surgery procedure.

BRIEF SUMMARY OF THE INVENTION

[0009] The present invention provides methods and systems which can improve laser eye surgery.

[0010] In one aspect, the methods and software of the present invention can register a first image of the patient's eye with a second image of the patient's eye. In some embodiments, the methods can determine a torsional offset θ₀ between the eye in the first image and the eye in the second image.

[0011] In one embodiment, a method comprises selecting at least one marker on the iris of the eye in the first image. A corresponding marker is located on the iris in the second image. The first image of the eye and the second image of the eye are registered by substantially matching a common reference point in the first and second images and matching the marker on the iris of the image of the first eye and the marker on the iris of the image of the second eye. Thereafter, a laser treatment can be centered and torsionally aligned with the second image of the eye. In some embodiments, the second image of the eye can be obtained while the patient's eye is aligned with a laser beam that is to deliver the laser treatment.

[0012] In some embodiments of the present invention, the common reference point is a pupil center. In other embodiments, the common reference point can be determined through a function of a pupil center and an iris center.

[0013] In another embodiment, the first image of the eye is obtained during the measurement of a wavefront (which reflects the lower and higher order optical aberrations in the optical system of the patient's eye) and the second image of the eye is obtained when the patient is positioned in the optical axis of the therapeutic laser. In order to align a laser treatment that is derived from the measured wavefront, the patient's eye in the first image can be registered with the patient's eye when it is positioned in an optical axis of the therapeutic laser so that the laser treatment is delivered in a torsionally correct orientation.

[0014] In another aspect, the present invention can track the torsional movement of the eye over time θ(t). Tracking of the torsional orientation of the patient's eye allows a computer processor to adjust a delivery of the customized ablation treatment to account for the changes in the position and orientation of the patient's eye.

[0015] In one particular configuration, the present invention provides for torsional tracking of the eye. A tracking algorithm can establish the exact amount of rotation of the eye with respect to the wavefront image taken during the wavefront measurement. This torsional rotation of the eye can be compensated for by making corresponding adjustment of the laser beam delivery.

[0016] In one embodiment of a method of the present invention, a reference point (such as a pupil center) is located in a first image of the eye. At least one marker is identified in the first image of the eye. The reference point is also located in a second image of the eye. A corresponding marker is identified in the second image of the eye. A cyclotorsional rotation of the eye is estimated between the first image and second image by comparing the orientation of the at least one markers relative to the pupil center in the first image and the second image.

[0017] In another aspect, the present invention provides a method of performing laser eye surgery. The method comprises measuring a wavefront measurement of the patient's eye. An image of the patient's eye is obtained during the measuring of the wavefront measurement. A laser treatment of the patient's eye is generated based on the wavefront measurement. The position of the patient's eye is registered with the image of the patient's eye obtained during the measuring of the wavefront measurement so that the customized laser treatment can accurately delivered to the patient's eye. The laser treatment is delivered to the patient's eye while the torsional orientation of the patient's eye is monitored. The delivery of the laser treatment is adjusted based on the monitored torsional orientation of the patient's eye.

[0018] In another aspect, the present invention provide a laser surgery system. In one embodiment, the laser surgery system provides a computer processor configured to receive a first image of an eye and at least one of a wavefront measurement and an ablation pattern for the eye. An eye tracker can be coupled to the computer processor to track a position of the eye under an optical axis of a laser beam. A torsional tracker is coupled to the computer processor to track a torsional orientation of the eye. The computer processor can be configured to adjust a delivery of the ablation pattern based on a change of position and/or torsional orientation of the eye.

[0019] In another embodiment, the present invention provides a laser surgery system comprising a system for registering a first image of an eye with a second image of an eye. Thee system includes a computer processor that is configured to receive a first image of an eye. An imaging device can be coupled to the computer processor. The imaging device can obtain a second image of the eye. The computer processor can be configured to locate a reference point, such as a pupil center, in the first and second image of the eye and locate at least one marker in the first image and find a corresponding marker in the second image. The computer processor can register the first and second image by substantially matching the reference points (e.g., pupil centers) and markers of the first and second image.

[0020] For a further understanding of the nature and advantages of the invention, reference should be made to the following description taken in conjunction with the accompanying drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

[0021]FIG. 1 schematically illustrates a simplified system of the present invention;

[0022]FIG. 2 schematically illustrates one laser surgery system of the present invention;

[0023]FIG. 3 illustrates one exemplary wavefront measurement device of the present invention;

[0024]FIG. 3A illustrates an alternative wavefront measurement device of the present invention;

[0025]FIG. 4 schematically illustrates an exemplary system of the present invention;

[0026]FIG. 5 schematically illustrates a method of the registering a first image with a second image;

[0027]FIG. 6A illustrates a reference image of an eye;

[0028]FIG. 6B illustrates a rotated image that corresponds to the reference image of FIG. 6A;

[0029]FIGS. 6C and 6D illustrate a center of a pupil and center of an iris;

[0030]FIG. 6E illustrate an inner and outer radii of a range of the iris radii;

[0031]FIG. 7A illustrates an unwrapped iris that is segmented into 24 sectors, with each sector having a numbered marker;

[0032]FIG. 7B illustrates a corresponding unwrapped iris in which the markers are torsionally rotated from their original positions;

[0033]FIG. 7C illustrates two iris images and texture blocks when the iris ring is not unwrapped;

[0034]FIG. 7D illustrates two iris images and texture blocks when the iris ring is unwrapped;

[0035]FIG. 8A illustrates an unwrapped iris;

[0036]FIG. 8B illustrates an unwrapped iris with LED reflections;

[0037]FIG. 9 is a graph that illustrates an angular rotation of the 24 markers;

[0038]FIG. 10 is a simplified method of tracking a torsional rotation of a patient's eye;

[0039]FIG. 11 is a frame image of a patient's eye and two markers on the iris that are used for tracking a torsional rotation of the patient's eye;

[0040]FIG. 12 illustrates six reference blocks/markers of the patient's iris that are used to track the torsional rotation of the patient's eye;

[0041]FIG. 13 illustrates the relative positions of the reference markers relative to the center of the patient's pupil;

[0042]FIG. 14 illustrates torsional angle estimates for an eye having a dark-colored iris;

[0043]FIG. 15 illustrates torsional angle estimates for an eye having a light colored iris;

[0044]FIGS. 16A and 16B are charts summarizing results for a data set processed by one alignment algorithm of the present invention;

[0045]FIG. 17A is an image of an eye that has too much shadow to discern markers;

[0046]FIG. 17B is a chart illustrating an eye having an RMS that is above 1;

[0047]FIG. 18A is an original frame image of an eye;

[0048]FIG. 18B is a final frame in which the image of the eye is rotated;

[0049]FIG. 19A is a reference frame;

[0050]FIG. 19B is a zeroth frame having two pixel blocks marked for tracking;

[0051]FIG. 20 is a chart of a pupil position over time;

[0052]FIG. 21 is a chart of the pupil radius from frame 0 to frame 500;

[0053]FIG. 22 is a chart that illustrates errors per frame/block;

[0054]FIG. 23 is a chart that illustrates a measured torsional angle of the eye;

[0055]FIG. 24 depicts the tracking results for a 30-frame sequence starting with the 345^(th) frame;

[0056]FIG. 25 is a chart that shows the torsional data extracted from the slower acquired sequence;

[0057]FIGS. 26A and 26B show alignment results using a sine-method between the wavefront measurement position of the iris and the first image of the video sequence;

[0058]FIGS. 27A and 27B show measurements of the torsional eye movements with respect to the reference image;

[0059]FIG. 28 shows a difference between two torsional angle estimates;

[0060]FIG. 29A illustrates two torsion estimates; and

[0061]FIG. 29B illustrates the error between the two estimates of FIG. 29A.

DETAILED DESCRIPTION OF THE INVENTION

[0062] The present invention is particularly useful for enhancing the accuracy and efficacy of laser eye surgical procedures such as photorefractive keratectomy (PRK), phototherapeutic keratectomy (PTK), laser in situ keratomileusis (LASIK), and the like. The efficacy of the laser eye surgical procedures can be enhanced by tracking the torsional orientation of the patient's eye so that a laser ablation pattern is more accurately aligned with the real-time orientation of the patient's eye.

[0063] While the system and methods of the present invention are described primarily in the context of improving a laser eye surgery system, it should be understood the techniques of the present invention may be adapted for use in alternative eye treatment procedures and systems such as femtosecond lasers and laser treatment, infrared lasers and laser treatments, radial keratotomy (RK), scleral bands, follow up diagnostic procedures, and the like.

[0064]FIG. 1 schematically illustrates a simplified system of one embodiment of the present invention. The illustrated system of the present invention can include a laser system 15 coupled to a wavefront measurement device 10 that measures aberrations and other optical characteristics of an entire optical tissue system. The data from such a wavefront measurement device may be used to generate an optical surface from an array of optical gradients. It should be understood that the optical surface need not precisely match an actual tissue surface, as the gradients will show the effects of aberrations which are actually located throughout the ocular tissue system. Nonetheless, corrections imposed on an optical tissue surface so as to correct the aberrations derived from the gradients should correct the optical tissue system. As used herein terms such as “an optical tissue surface” may encompass a theoretical tissue surface (derived, for example, from wavefront sensor data), an actual tissue surface, and/or a tissue surface formed for purposes of treatment (for example, by incising corneal tissues so as to allow a flap of the corneal epithelium to be displaced and expose the underlying stroma during a LASIK procedure).

[0065] Referring now to FIGS. 1 and 2, one embodiment of laser eye surgery system 15 of the present invention is illustrated. Laser eye surgery system 15 includes a laser 12 that produces a laser beam 14. Laser 12 is optically coupled to laser delivery optics 16, which directs laser beam 14 to an eye of patient P. A delivery optics support structure (not shown here for clarity) extends from a frame 18 supporting laser 12. A microscope 20 is mounted on the delivery optics support structure, the microscope often being used to image a cornea of eye E.

[0066] Laser 12 generally comprises an excimer laser, typically comprising an argon-fluorine laser producing pulses of laser light having a wavelength of approximately 193 nm. Laser 12 will preferably be designed to provide a feedback stabilized fluence at the patient's eye, delivered via delivery optics 16. The present invention may also be useful with alternative sources of ultraviolet or infrared radiation, particularly those adapted to controllably ablate the corneal tissue without causing significant damage to adjacent and/or underlying tissues of the eye. Such sources include, but are not limited to, solid state lasers and other devices which can generate energy in the ultraviolet wavelength between about 185 and 205 nm and/or those which utilize frequency-multiplying techniques. Hence, although an excimer laser is the illustrative source of an ablating beam, other lasers may be used in the present invention.

[0067] Laser 12 and delivery optics 16 will generally direct laser beam 14 to the eye of patient P under the direction of a computer processor 22. Processor 22 will generally selectively adjust laser beam 14 to expose portions of the cornea to the pulses of laser energy so as to effect a predetermined sculpting of the cornea and alter the refractive characteristics of the eye. In many embodiments, both laser 14 and the laser delivery optical system 16 will be under computer control of processor 22 to effect the desired laser sculpting process so as to deliver the customized ablation profile, with the processor ideally altering the ablation procedure in response to inputs from the optical feedback system. The feedback will preferably be input into processor 22 from an automated image analysis system, or may be manually input into the processor by a system operator using an input device in response to a visual inspection of analysis images provided by the optical feedback system. Processor 22 will often continue and/or terminate a sculpting treatment in response to the feedback, and may optionally also modify the planned sculpting based at least in part on the feedback.

[0068] Laser beam 14 may be adjusted to produce the desired sculpting using a variety of alternative mechanisms. The laser beam 14 may be selectively limited using one or more variable apertures. An exemplary variable aperture system having a variable iris and a variable width slit is described in U.S. Pat. No. 5,713,892, the full disclosure of which is incorporated herein by reference. The laser beam may also be tailored by varying the size and offset of the laser spot from an axis of the eye, as described in U.S. Pat. No. 5,683,379, and as also described in co-pending U.S. patent application Ser. Nos. 08/968,380, filed Nov. 12, 1997; and 09/274,999 filed Mar. 22, 1999, the full disclosures of which are incorporated herein by reference.

[0069] Still further alternatives are possible, including scanning of the laser beam over the surface of the eye and controlling the number of pulses and/or dwell time at each location, as described, for example, by U.S. Pat. No. 4,665,913 (the full disclosure of which is incorporated herein by reference) and as demonstrated by other scanning laser systems such as the LSX laser by LaserSight, LadarVision by Alcon/Autonomous, and the 217C by Technolas; using masks in the optical path of laser beam 14 which ablate to vary the profile of the beam incident on the cornea, as described in U.S. patent application Ser. No. 08/468,898, filed Jun. 6, 1995 (the full disclosure of which is incorporated herein by reference); hybrid profile-scanning systems in which a variable size beam (typically controlled by a variable width slit and/or variable diameter iris diaphragm) is scanned across the cornea; or the like. The computer programs and control methodology for these laser pattern tailoring techniques are well described in the patent literature.

[0070] Additional components and subsystems may be included with laser system 15, as should be understood by those of skill in the art. For example, spatial and/or temporal integrators may be included to control the distribution of energy within the laser beam, as described in U.S. Pat. No. 5,646,791, the disclosure of which is incorporated herein by reference. An ablation effluent evacuator/filter, and other ancillary components of the laser surgery system which are not necessary to an understanding of the invention, need not be described in detail for an understanding of the present invention.

[0071] As mentioned above, laser system 15 will generally include a computer system or programmable processor 22. Processor 22 may comprise (or interface with) a conventional PC system including the standard user interface devices such as a keyboard, a display monitor, and the like. Processor 22 will typically include an input device such as a magnetic or optical disk drive, a CD drive, an internet connection, or the like. Such input devices will often be used to download a computer executable code from a computer network or a tangible storage media 29 embodying steps or programming instructions for any of the methods of the present invention. Tangible storage media 29 includes, but is not limited to a CD-R, a CD-RW, DVD, a floppy disk, an optical disk, a data tape, a non-volatile memory, or the like, and the processor 22 will include the memory boards and other standard components of modern computer systems for storing and executing this code.

[0072] Wavefront measurement device 10 typically includes a wavefront measurement assembly 11 and an imaging assembly 13. Wavefront measurement assembly 11 can be used to measure and obtain a wavefront elevation surface of at least one of the patient's eyes and imaging assembly 13 can obtain still or moving images of the patient's eye during the wavefront measurement.

[0073] In exemplary embodiments, imaging assembly 13 is a CCD camera that can obtain a still image of the patient's eye. The image(s) obtained by imaging assembly 13 can thereafter be used to register the wavefront measurement and/or a customized ablation pattern (based on the wavefront measurement) with the patient's eye during the laser surgical procedure.

[0074] The wavefront measurement assembly 11 and imaging assembly 13 can be coupled to or integral with a computer system 17 that can generate and store the wavefront measurements and images of the patient's eye. Thereafter, the patient's wavefront data can be stored on a computer readable medium, such as a CD-R, CD-RW, DVD-R, floppy disk, optical disk, a hard drive, or other computer readable medium. Optionally, in some embodiments, the computer system of the wavefront measurement device can generate and save an ablation profile based on the wavefront data.

[0075] The wavefront data and/or the customized ablation profile can be loaded into a laser surgical system 15 through reading of the computer readable medium or through delivery into a memory of surgical system 15 over a local or wide-area network (LAN or WAN). Laser eye surgery system 15 can include a computer controller system 22 that is in communication with an imaging assembly 20 and a laser assembly 12. Computer system 22 can have software stored in a memory and hardware that can be used to control the delivery of the ablative energy to the patient's eye, the tracking of the position (translations in the x, y, and z directions and torsional rotations) of the patient's eye relative to an optical axis of laser beam 14, and the like. In exemplary embodiments, among other functions, computer system 22 can be programmed to calculate a customized ablation profile based on the wavefront data, register the image(s) taken with imaging assembly 11 with the image(s) taken by imaging assembly 20, and measure the torsional offset, θ₀, between the patient's eye in the two images. Additionally, computer system 22 can be programmed to measure, in real-time, the movement (x(t), y(t), z(t), and rotational orientation θ(t)) of the patient's eye relative to the optical axis of the laser beam so as to allow the computer system to modify the delivery of the customized ablation profile based on the real-time position of the patient's eye.

[0076] Referring now to FIG. 3, one embodiment of a wavefront measurement device 10 of the present invention is schematically illustrated. As can be appreciated, the illustrated wavefront measurement device 10 is merely an example of one wavefront measurement device that can be used with the embodiments of the present invention and other conventional or proprietary wavefront measurement devices can be used.

[0077] In very general terms, wavefront measurement device 10 includes an imaging assembly 13 that can image the patient's eye E during the wavefront measurement. Wavefront measurement assembly 13 includes an image source 32 which projects a source image through optical tissues 34 of eye E and so as to form an image 44 upon a surface of retina R. The image from retina R is transmitted by the optical system of the eye (specifically, optical tissues 34 ) and imaged onto a wavefront sensor 36 by system optics 38. The imaging assembly 11 can be in communication with a computer system 22 to deliver the image(s) of the patient's eye to a memory in the computer. Wavefront sensor 36 can also communicate signals to computer 17 for determination of a corneal ablation treatment program. Computer 17 may be the same computer which is used to direct operation of the laser surgery system 15, or at least some or all of the computer components of the wavefront measurement device 10 and laser surgery system may be separate. Data from wavefront sensor 36 may be transmitted to laser system computer 22 via tangible media 29, via an I/O port, via an networking connection such as an intranet, the Internet, or the like.

[0078] Wavefront sensor 36 generally comprises a lenslet array 38 and an image sensor 40. As the image from retina R is transmitted through optical tissues 34 and imaged onto a surface of lenslet array 38, the lenslet array separates the transmitted image into an array of beamlets 42, and (in combination with other optical components of the system) images the separated beamlets on the surface of sensor 40. Sensor 40 typically comprises a charged couple device or CCD, and senses the characteristics of these individual beamlets, which can be used to determine the characteristics of an associated region of optical tissues 34. In particular, where image 44 comprises a point or small spot of light, a location of the transmitted spot as imaged by a beamlet can directly indicate a local gradient of the associated region of optical tissue.

[0079] Eye E generally defines an anterior orientation ANT and a posterior orientation POS. Image source 32 generally projects an image in a posterior orientation through optical tissues 34 onto retina R. Optical tissues 34 again transmit image 44 from the retina anteriorly toward wavefront sensor 36. Image 44 actually formed on retina R may be distorted by any imperfections in the eye's optical system when the image source is originally transmitted by optical tissues 34. Optionally, image source projection optics 46 may be configured or adapted to decrease any distortion of image 44.

[0080] In some embodiments, image source optics may decrease lower order optical errors by compensating for spherical and/or cylindrical errors of optical tissues 34. Higher order optical errors of the optical tissues may also be compensated through the use of an adaptive optic element, such as a deformable mirror. Use of an image source 32 selected to define a point or small spot at image 44 upon retina R may facilitate the analysis of the data provided by wavefront sensor 36. Distortion of image 44 may be limited by transmitting a source image through a central region 48 of optical tissues 34 which is smaller than a pupil 50, as the central portion of the pupil may be less prone to optical errors than the peripheral portion. Regardless of the particular image source structure, it will be generally be beneficial to have well-defined and accurately formed image 44 on retina R.

[0081] While the method of the present invention will generally be described with reference to sensing of an image 44 on the retina, it should be understood that a series of wavefront sensor data readings may be taken. For example, a time series of wavefront data readings may help to provide a more accurate overall determination of the ocular tissue aberrations. As the ocular tissues can vary in shape over a brief period of time, a plurality of temporally separated wavefront sensor measurements can avoid relying on a single snapshot of the optical characteristics as the basis for a refractive correcting procedure. Still further alternatives are also available, including taking wavefront sensor data of the eye with the eye in differing configurations, positions, and/or orientations. For example, a patient will often help maintain alignment of the eye with wavefront device 13 by focusing on a fixation target, as described in U.S. Pat. No. 6,004,313, the full disclosure of which is incorporated herein by reference. By varying a focal position of the fixation target as described in that reference, optical characteristics of the eye may be determined while the eye accommodate or adapts to image a field of view at a varying distance. Further alternatives include rotating of the eye by providing alternative and/or moving fixation targets within wavefront device 11.

[0082] The location of the optical axis of the eye may be verified by reference to the data provided from an imaging assembly or pupil camera 13 that images the eye concurrently during the wavefront measurements. In the exemplary embodiment, a pupil camera 13 images pupil 50 and/or the iris so as to allow subsequent determination of a position and torsional orientation of the pupil and/or iris for registration of the wavefront sensor data relative to the optical tissues, as will also be described hereinbelow.

[0083] An alternative embodiment of a wavefront sensor system is illustrated in FIG. 3A. The major components of the system of FIG. 3A are similar to those of FIG. 3. Additionally, FIG. 3A includes an adaptive optical element 52 in the form of a deformable mirror. The source image is reflected from deformable mirror 52 during transmission to retina R, and the deformable mirror is also along the optical path used to form the transmitted image between retina R and imaging sensor 40. Deformable mirror 52 can be controllably deformed to limit distortion of the image formed on the retina, and may enhance the accuracy of the wavefront data. The structure and use of the system of FIG. 3A are more fully described in U.S. Pat. No. 6,095,651, the full disclosure of which his incorporated herein by reference.

[0084] The components of one embodiment of a wavefront system for measuring the eye and ablations comprise elements of a VISX WaveScan™, available from VISX, Inc. of Santa Clara, Calif. A preferred embodiment includes a WaveScan with a deformable mirror as described above. An alternate embodiment of a wavefront measuring device is described in U.S. Pat. No. 6,271,915, the full disclosure of which is incorporated herein by reference.

[0085] A treatment program map may be calculated from the wavefront elevation map so as to remove the regular (spherical and/or cylindrical) and irregular errors of the optical tissues. By combining the treatment program with a laser ablation pulse characteristics of a particular laser system, a table of ablation pulse locations, sizes, shapes, and/or numbers can be developed. An exemplary method and system for preparing such an ablation table is described in co-pending U.S. patent application Ser. No. 09/805,737 filed on Mar. 13, 2001 and entitled “Generating Scanning Spot Locations for Laser Eye Surgery,” the full disclosure of which is incorporated herein by reference. Ablation table may optionally be optimized by sorting of the individual pulses so as to avoid localized heating, minimize irregular ablations if the treatment program is interrupted, and the like.

[0086] Based on the wavefront measurements of the eye, a corneal ablation pattern may be calculated by processor 17 or 22 (or by another separate processor) for ablating the eye with laser ablation system 15 so as to correct the optical errors of the eye. Such calculations will often be based on both the measured optical properties of the eye and on the characteristics of the corneal tissue targeted for ablation (such as the ablation rate, the refractive index, the propensity of the tissue to form “central islands” or decreased central ablation depths within a uniform energy beam, and the like). The results of the calculation will often comprise an ablation pattern in the form of an ablation table listing ablation locations, numbers of pulses, ablation sizes, and or ablation shapes to effect the desired refractive correction. An exemplary method for generating ablation patterns is described in co-pending U.S. patent application Ser. No. 09/805,737, the full disclosure of which was previously incorporated herein by reference. Where the refractive error is to be corrected by alternative treatment modalities, alternative treatment plans may be prepared, such as corneal ring implant sizes, or the like.

[0087] Referring now to FIG. 4, an information flow of one embodiment of a method of the present invention will be described. Wavefront measurement assembly 13 can use wavefront sensors 36, such as Hartmann-Shack sensors, for obtaining a wavefront elevation surface 54 of the patient's eye. Wavefront elevation surface 54 can be run through a treatment algorithm 58 to generate a treatment table or ablation profile 60 that is customized to correspond to the patient's wavefront elevation surface 54. As noted above, ablation profile 60 can be calculated by a processor of wavefront device 10, laser system 15, or by a separate processor and stored in a memory of computer 17, 22.

[0088] During the calculation of the wavefront elevation surface, imaging assembly 11 can concurrently obtain an image 56 of the patient's eye, e.g., pupil and iris. The image of the patient's eye 56 can be analyzed by an algorithm 62 that locates the center of the pupil and/or iris, calculates the radius of the pupil and/or iris, and locates markers 64 in the patient's iris for subsequent registration and tracking.

[0089] In order to register the ablation profile 60 and the patient's eye during the laser treatment, the ablation pattern and the patient's eye should share a common coordinate system. Thus, ablation profile 60 should be positionally and torsionally aligned with the patient's eye when the patient's eye is positioned in the path of the laser beam. Additionally, the translational and torsional orientation of the patient's eye should be tracked during the surgical procedure to ensure an accurate delivery of the ablation profile.

[0090] To torsionally align (i.e., register) the ablation profile 60 with the patient's eye E, the reference or iris image 56 of the eye needs to have a unique coordinate transformation to an image of the eye taken by the pupil camera 20 of the laser system so as to determine the positional differences and torsional offset between the two images of the eye, θ₀. In exemplary embodiments, pupil camera 20 is a video device that can obtain streaming video of the patient's eye. One frame 66 of the streaming video, typically the first frame of the streaming video, can be analyzed by the computer processor to locate the pupil center, iris center, and/or markers 64 that were originally located in the reference image 56. Once the pupil center, iris center, and/or markers 64 are located, a torsionally offset, θ₀, between reference image 56 and video frame image 66 of the patient's eye is calculated.

[0091] Once the torsional offset θ₀ is determined, the computer can track the translational position (x(t), y(t), and z(t)) of the patient's eye E with a high speed eye tracker (HSET) 68 and the torsional orientation (θ(t)) of the eye with a torsional tracker 70. Because the position of the center of the pupil is tracked with the HSET 68, the torsional tracker 70 generally has to estimate the position of the markers 64 with respect to the pupil center.

[0092] If the HSET 68 determines that the patient's eye has moved (relative to video frame image 66), the computer can correct the delivery of the customized ablation pattern by adjusting the patient's customized treatment table 60 by adding in the translation and torsional measurements into the table. The treatment table can be adjusted such that at time t, if the overall rotation angle of the eye is θ(t), and the next pulse of the laser is supposed to be delivered at location (x,y) on the cornea, the new location of the delivery of the pulse can be defined by: $\begin{pmatrix} x^{\prime} \\ y^{\prime} \end{pmatrix} = {\begin{bmatrix} {\cos \quad \theta} & {{- \sin}\quad \theta} \\ {\sin \quad \theta} & {\cos \quad \theta} \end{bmatrix}\begin{pmatrix} x \\ y \end{pmatrix}}$

[0093] To track the torsional movement of the patient's eye, torsional tracker 70 can use the markers 64 identified above, other high-contrast iris patches, or if the patient's iris contains too little texture, the surgeon will have an option of drawing artificial landmarks 72 on the eye for tracking. Optionally, in some embodiments it is possible for the algorithm to decide if artificial markers are required.

[0094] The translational position and torsional orientation of the patient's eye can be tracked and analyzed by a computer processor in real-time so that the x(t), y(t), z(t) and θ(t) information 74 can be used to adjust the customized treatment table 60 so that laser 12 delivers the appropriate ablation pattern 76 to the patient's eye.

[0095] Some exemplary methods of carrying out the present invention will now be described. As described above, a first step of the present invention entails registering a reference image of the eye taken during the calculation of the wavefront elevation map with a second image of the eye taken just prior to the delivery of the ablation energy.

[0096] FIGS. 5 to 9 illustrate aspects of one embodiment of a method of the present invention. FIG. 5 schematically illustrates the data flow through an alignment algorithm that can torsionally register a reference image with a second image of the eye to determine the torsional displacement between the two images of the eye. An initial step in the method is to obtain the first, reference image. (Step 80). As shown in FIG. 6A, in one embodiment, the first or reference image is a grayscale image of the patient's eye that is taken by a CCD camera in the wavefront measurement device under infrared illumination (λ=940 nm). In one test configuration, the images were 768×576 pixels and have 256 gray levels. The image contains the pupil and the iris. In some images, part of the iris may be occluded by one or both of the eyelids or cropped by the camera's field of view.

[0097] It should be appreciated however, that the present invention can use a variety of imaging devices to produce different images and can be illuminated under various types of illumination.

[0098] In most configurations, the smallest distance between the edge of the pupil and the obstructing elements, such as eyelids, eyelashes, strong shadows or highlights should be sufficiently large to leave a portion of the iris completely exposed for the entire 360-degree range. Preferably, the largest possible portion of the iris is in sharp focus so as to expose its texture.

[0099] A pupil finding algorithm can be used to locate the pupil, calculate the radius of the pupil and find the center of the pupil (Step 82). In one embodiment the pupil is located by thresholding the image by analyzing a pixel value histogram and choosing the position of a first “dip” in the histogram after at least 2000 pixels are below the cutoff threshold. All pixels below the threshold are labeled with “1” and pixels above the threshold are labeled with “0”. Pixels labeled with “1” would generally correspond to the pupil, eyelashes, and possibly other regions of the image. It should be appreciated however, that the number of pixels employed will be related to the area of the pupil and will vary with applications of the invention.

[0100] The two distinguishing features about the pupil region, compared to other non-pupil regions is its large size and central location. In some embodiments, regions intersecting with a 5-pixel wide inner frame of the image can be discarded and the largest remaining region can be selected as the pupil.

[0101] If desired, the selected pupil region can be filled to remove any holes created by reflections, or the like. For example, in one embodiment, the remaining region of the image may also be analyzed for convexity. If the ratio of the area of the region to the area of its convex hull was less then 0.97, a circle completion procedure can be applied to the convex points on the region's boundary. One way of performing such an analysis is through a Matlab function “imfeature(. . . , ‘CovexHull’)”. A radius and center of the pupil can be estimated by a standard weighted least-square estimation procedure. If the convexity quotient was above 0.97, the radius and centroid can obtained using conventional methods, such as Matlab's “imfeature(. . . , ‘Centroid’, ‘EquivDiameter’)” function.

[0102] Optionally, in some embodiments an iris finding algorithm can be used to locate the iris, calculate the radius of the iris, and/or locate the iris center. Since the images of the eye from both imaging assembly 11 and the camera 20 both contain the pupil and iris, in some embodiments it may be more accurate to register the images by calculating the center of the pupil and the center of the iris and expressing the position of the pupil center with respect to the center of the iris. The center of the iris may be described as a center of a circle corresponding to the outer boundary of the iris. The position of the center of the iris can be used to calculate a pupil offset from the iris center.

[0103] If $\overset{\rightarrow}{X_{P}^{WS}}$

[0104] are the coordinates of the center of the pupil in image 56 (FIG. 4). Let $\overset{\rightarrow}{X_{I}^{WS}}$

[0105] be the center of the iris in image 56. Let $\overset{\rightarrow}{X_{P}^{LASER}}$

[0106] be the center of the pupil in the laser's camera image 66. Let $\overset{\rightarrow}{X_{I}^{LASER}}$

[0107] be the center of the iris in the laser's camera image. Even if the iris or pupil are not circular (e.g., elliptical) there will still be a center for each of the pupil and iris. Then, the center position {right arrow over (C)} with respect to pupil center for the surgery can be defined as: $\overset{\rightarrow}{C} = {{- \overset{\rightarrow}{X_{I}^{WS}}} + \overset{\rightarrow}{X_{P}^{WS}} - \overset{\rightarrow}{X_{P}^{LASER}} + \overset{\rightarrow}{X_{I}^{LASER}}}$

[0108]FIGS. 6C and 6D schematically illustrate simplified images of the eye taken with image assembly 11 and camera 20, respectively that can be analyzed to find the pupil center and iris center. Marker 200 marks the iris center in both images, marker 204 corresponds to the pupil center in image 56 and marker 206 corresponds to the pupil center in the laser image 66. As illustrated in the images, in laser image 66, the pupil has changed in size (as shown by the gray outline) and the center of the pupil has moved relative to the center of the iris 200. In some embodiments, during laser surgery, the measured wavefront measurement and corresponding ablation pattern can be centered over center position {right arrow over (C)} that is calculated by the above equation.

[0109] Since the boundary of the iris may be soft in terms of contrast and may also degraded by shadows and light reflections, there may be difficulties associated with detecting the outer iris boundary in infrared images of the eye. One method for detection of both iris and the pupil in the image I(x,y) is to minimize the following integral over all possible values of iris radius and center: $\max_{({r,{x0},{y0}})}{{{G_{\sigma}(r)}*\frac{\partial\quad}{\partial r}{\oint_{r,{x0},{y0}}{\frac{I\left( {x,y} \right)}{2{\pi \cdot r}}{s}}}}}$

[0110] One alternative to the above method takes advantage of the fact that the pupil center has already been found (as described above), that the iris has a limited range of possible values and the iris center is usually not very far from the pupil center. As shown in FIG. 6E, since the center of the pupil and the center of the iris are not far from each other, it is possible to estimate the radial derivative of the image intensity with respect to the iris center by the radial derivative with respect to the pupil center. Furthermore, the limited range of iris radius values occurring in nature, allows restriction of a range of possible search to a ring centered at pupil center and having inner and outer radii such that the iris edge should always be located somewhere within the range. In one embodiment, the numerical search range, can be between approximately 10.5 mm and 14 mm. In other embodiments, the range may be larger or smaller, if desired. See Burns et al., IOVS, July 2002.

[0111] For example, as illustrated in FIG. 6E, circles 208, 210 illustrate a potential range for the iris radius. The values of the radial derivative that exceed certain threshold can be passed to the weighted least square estimator for the best circle fit through the set of points, as is described herein. The initial weights of the points are proportional to their intensity. After enough iterations (e.g., two iterations) are performed to converge to a stable solution, the algorithm converges to the answer represented by the red circle.

[0112] The iris finding algorithm shows tolerance to other edges detected by the derivative operator, but corresponding to other structures in the image (e.g., LASIK flap). If desired, to reduce the computation time, the original images can be smoothed with a Gaussian kernel and sub-sampled by a factor of four prior to a derivative computation.

[0113] In embodiments of the present invention, the boundary of the iris can be localized with sub-pixel accuracy, but it might be slightly displaced from its true location if the shadows in the image soften the boundary edge. However, the errors are fairly well balanced in all directions from the center, so that the final result is very close to the actual center.

[0114] In the embodiments tested, the image scale for both the second image (e.g., laser image) and the first image (e.g., wavefront image) is estimated to be 52.3 pixels per millimeter, which is 19.1 μm per pixel. An error of one pixel in the boundary estimation on one side of the iris would result in about 10 μm error in the estimate of the iris center. Given the current precision of conventional eye trackers (about 50 μm ) and the range of pupil center shift (up to 1000 μm ), the errors of a few pixels in the iris boundary would still be within the acceptable accuracy for the ablation centering.

[0115] Next, after the pupil center (and/or iris center) are located, a width of the iris ring can be extracted from the images. (Step 84). The iris can be treated as an elastic sheet stretched between pupil and the outer rim of the iris. In embodiments that do not use the iris finding algorithm, the width of the iris band can be set to 76 pixels for images of dark-colored eyes, and 104 pixels for the light-colored eyes. It should be appreciated, however, that other width estimations can be used. The radius of the iris in the reference images of FIGS. 6A and 6B were estimated to be 320 pixels and assumed to be roughly constant for all people.

[0116] As shown in FIG. 7A, the iris ring can then be unwrapped and divided into a fixed number of sectors, by converting the Cartesian iris coordinates into polar coordinates, centered at the pupil. (Step 86). In alternative embodiments, it may be possible to analyze the iris ring without unwrapping it. However, Applicant has found that unwrapping and scaling the iris ring allows better matching of texture blocks between different images of the eye by means of pure translation. For example, as shown in FIGS. 7C and 7D, if the iris ring is not unwrapped, the software may have trouble matching of texture blocks that have rotated (FIG. 7C), whereas if the iris ring is unwrapped, the texture blocks have the same relative shape (FIG. 7D).

[0117] In some embodiments, the iris ring can be sampled at one-pixel steps in the radial direction for the reference image. Optionally, to reduce aliasing, the images can be smoothed with σ=1 pixel Gaussian kernel.

[0118] Optionally, the dynamic range of pixel values in the iris may be adjusted to remove outliers due to reflections from the illumination LED lights. The pixel value histogram can be thresholded so that all the pixels with values above the threshold are assigned the value of the threshold. Also, some band-pass filtering may be applied to the iris bands prior to region selection to remove lighting variation artifacts.

[0119] After the iris is divided into sectors, one salient region or marker in each sector in image can be located and its properties can be extracted. (Steps 88, 90). In one embodiment, the iris region is segmented into twenty four sectors of fifteen degrees. It should be appreciated, however, that in other embodiments, the iris region can be segmented into more than twenty four sectors or less than twenty four sectors.

[0120] The markers in the reference image can be stored and later located in the second image of the eye so as to estimate the torsional displacement of the eye between the two images. One embodiment of a method of locating the markers is described more fully in Groen, E., “Chapter 1 on Video-oculography,” PhD Thesis, University of Utrecht (1997), the complete disclosure of which is incorporated herein by reference.

[0121] The markers should be sufficiently distinct and have high contrast. There are several possible ways to select such points. In one implementation, a square mask of size M×M (for example, 21×21 for dark-colored eyes and 31×31 for light-colored eyes) is defined. The mask can be scanned over each of the twenty four sectors, and for each pixel in each sector a value is computed from the region inside the mask centered at that pixel. The value assigned to the pixel is determined as the sum of amplitudes of all spatial frequencies present in the region. In one embodiment, the sum of the amplitudes can be computed by a Fourier transform of the region. If desired, the central 5×5 portion of the Fourier spectrum can be nulled to remove a DC component. The maximum value can then be located in each sector, such that the boundary of its corresponding mask is at least 5 pixels away from the iris image boundary in order to avoid getting close to the pupil margin and other boundary artifacts, such as the eyelid and eyelashes. The “winning” positions and the corresponding blocks are stored for later comparison.

[0122] It should be appreciated, however, that there are alternative methods for evaluation of block/marker texture strength. For example the following matrix can be applied. If Gx is the derivative of the block intensity in the x-direction, and Gy is the derivative of the block intensity in the y-direction, then: $Z = \begin{bmatrix} {\sum{Gx}^{2}} & {\sum{GxGy}} \\ {\sum{GxGy}} & {\sum{Gy}^{2}} \end{bmatrix}$

[0123] And let λ₁, λ₂ be the eigenvalues of the matrix of Z, with λ₂ being the smaller one, then λ₂ is the texture strength of the block.

[0124] The second image of the eye can also be obtained. (Step 92; FIG. 6B). In exemplary embodiments, the second image is obtained with a laser surgical system's microscope camera prior to delivering the ablative energy to the patient. In one configuration, the laser camera has a resolution of 680×460 pixels using 256 grayscale levels. The magnification of the laser camera in relation to the reference camera from the CCD camera was estimated to be 0.885. The eye can be illuminated by a set of infrared LED lights having a wavelength of 880 nm. It should be appreciated, however, that many other imaging devices can be used to obtain different image types, including images that do not require a magnification, images of different resolution, and images that are illuminated by other light wavelengths.

[0125] The sectors in the second image are located and the salient regions that correspond to the salient regions in the reference image are located. (Step 94; FIG. 7B). For each sector in the second image, a best matching region is located. Optionally, the search is constrained to the matching sector and the two adjacent sectors in the second image, thus limiting possible matches to within 15 degrees, which is a reasonable biological limit for ocular cyclo-rotation. It should be appreciated however, in other embodiments, the range of limiting the possible match may be larger or smaller than 15 degrees.

[0126] The match between the marker in the reference image and the marker in the second image is evaluated as the sum of absolute errors (after both blocks are made to have zero mean value) for each corresponding region centered at a given pixel. As shown in FIGS. 8A and 8B, due to presence of LED reflections on the iris, some portions of the iris may lose its texture in the second image. In some embodiments, these areas 95 can be detected by histogram analysis similar to pupil detection and can be excluded from matching. The points with the smallest error can then be selected as the matching markers for each marker in the reference image.

[0127] Alternatively, instead of using the sum of absolute errors to match the markers, a dot product of the mean-subtracted reference and the second image patches can be calculated, where: $L = {\sum\limits_{i}{\left( {I_{i} - \overset{\_}{I}} \right)\left( {J_{i} - \overset{\_}{J}} \right)}}$

[0128] in which the higher the “L”, the better the match between the markers.

[0129] Once the corresponding salient regions/markers are located in the second image, an angular displacement for each marker is calculated to estimate a total torsional angle of the eye between the first, reference image and the second image. (Step 96; FIG. 9).

[0130] Under ideal circumstances, the displacement of each marker would be identical and equal to the torsional angle. However, there are several distortions that make the problem of estimating the true torsional angle more complex. First, the center of the pupil may not be estimated correctly. This introduces a sinusoidal distribution of displacement angles around the true torsional angle. The amplitude of the sinusoid is usually quite small. Second, the actual shape of the pupil is often elliptical and not round. This can introduce a sinusoidal distortion with twice the period of the center of the pupil distortion due to the method of measurement of the landmarks with respect to the circular pupil. Indeed, points further away from the pupil center will be spaced closer to each other after the iris is unwrapped, and points closer to the pupil center would end up being spaced more widely. Finally, some corresponding markers may make false matches; such markers can be treated as outliers. Consequently, to account for such distortions, in one embodiment the estimated angles can be fitted with a number of different functions using an iterative weighted estimation as follows:

F1=TA1

F2=TA2+A1*sin(θ)+B1*cos(θ)

[0131] where TAs are the estimates of the true torsional angle and θ is the angular coordinate of the markers. Application of the functions to the torsional angle data can thereafter provide an estimate for the torsional angle θ₀ between the reference image and the second image.

[0132] The initial torsional angle, θ₀, computed by the alignment algorithm (between the iris image 56 taken with pupil camera 13 and the initial video frame 66 from imaging device 20) can be added to every subsequent frame for tracking of the torsional orientation of the patient's eye. The total torsional orientation θ_(total)(t) of the patient's eye in the laser image can be described as follows:

θ_(total)(t)=θ₀+θ(t)

[0133] where θ(t) is the measured torsional angle between the eye in the initial frame of the video stream and the eye in the n^(th) frame at time t.

[0134] While the alignment algorithm that calculates θ₀ does not have to produce results in real time, a tracking algorithm that tracks the torsional rotation θ(t) of the eye should work at frame rate, which demands quick, efficient and accurate computations. In one embodiment, the high speed eye tracker (HSET) of the laser surgical system can be used to keep track of the translation of the pupil the x, y, and z directions. Having the position of the pupil readily available requires only that the torsional tracker estimate the positions of the iris landmarks with respect to the center of the pupil.

[0135] The iris can undergo rigid translations (e.g., movement in the x, y, and z directions), rotations, as well as some non-rigid affine transformations of scaling and shearing. While the torsional angle is not affected by the non-rigid transformations, it is preferable that the non-rigid transformations be taken into account in order to ensure accurate feature matching from frame to frame. In one method, the main ideas is that given image I₀, a feature portion of a frame at time t=0, and image I_(n), part of frame at time t=n, one can determine the optimal set of parameters A and d, such that:

I _(n)(Ax+d)=I ₀(x)

[0136] where A=1+D, where D is a deformation matrix and d is the translation of the feature window. Such an approach is described in computer vision literature such as Lucas B. D. and Kanade, T. “An Iterative Image Registration Technique and Application to Stereo Vision” ILCAI (1981), Shi, J. and Tomasi, C. “Good Features to Track,” IEEE Conference on Computer Vision and Pattern Recognition 1994, and Hager, G. D. and Toyama, K. “X-Vision: A portable Substrate for Real-Time Vision Applications,” Computer Vision and Image Understanding 1996, the complete disclosures of which are incorporated herein by reference. Parameters of deformation and translation are determined by Newton-Raphson minimization procedure which can produce accurate results.

[0137] Since the types of transformation that occur during laser eye surgery are primarily translation (x, y, z) and torsional rotation about the optical axis of the eye, these parameters can be estimated and the remaining scale and shear parameters are refined afterwards. Such a procedure has been found to be robust in recovering the actual motion and avoids excessive deformations that might mimic the observed data.

[0138]FIG. 10 schematically illustrates a simplified method of tracking the torsional rotation of the patient's eye during the surgical procedure. First, the pupil and iris are located in both the first frame and n^(th) frame of the video stream. (Step 100). Reference points can be located in the first frame and the corresponding reference points can be located in the n^(th) frame of the video stream. (Step 102). The angular offset between the reference points in the two images can then be calculated to estimate the torsional rotation of the eye. (Step 104). The steps can be repeated for each of frames of the video stream until the ablation procedure is completed. (Step 105).

[0139]FIG. 11 is an example of a first frame 106 from the video stream of the eye taken prior to the laser ablation. A pupil 108 has been located (as noted by circular outline 110 image around the circumference of the pupil), and two reference loci or points 112, 114 are selected for torsional tracking. Generally, reference points 112, 114 are a subset of the points chosen for registration (described above). The points 112, 114 can be chosen automatically by the software of the present invention based on its texture strength, and positioning relative to the pupil (e.g., 8 o'clock position and 2 o'clock position). In alternative embodiments, however, it may be possible to independently select points 112, 114 separate from the original markers using the same technique described above or to manually select or draw the reference points 112, 114 on the patient's iris.

[0140] The process of selecting points for tracking can be automatic or surgeon-assisted. The automatic process can select one point on the right of the pupil and one on the left based on which reference block in the corresponding neighborhood has best block-match score and also included in the estimate of the alignment angle, i.e. not an outlier. If the texture of the iris has very low contrast or does not have distinctive components, it may be necessary to introduce artificial landmarks. Such landmarks can be drawn on the eye by the surgeon, so that the algorithm would track their spatial displacements instead of displacements of the patches of iris texture.

[0141] One exemplary selection algorithm selects a subset of blocks that are not outliers. From this subset, blocks are removed that are in the positional domain of possible reflections. These positions are known due to specific placement of LEDs on the laser. The texture of the remaining blocks from the laser image may be quantified by the second largest eigenvector λ₂. Two blocks, roughly on the opposite sides of the pupil are chosen, such that they have the largest λ₂ in the group. In one embodiment, the “left block” is selected from the valid blocks centered around the 8-o'clock position, and the “right block” is selected among the valid blocks centered at the 2-o'clock position. The coordinates of the centers of these blocks can be used to initialize tracking.

[0142] Once the blocks/loci 112, 114 have been selected in the first frame, for each consecutive frame of the video feed, the blocks are located within a region of the iris that has the same position with respect to the pupil of the eye. The region is generally limited to approximately 15 degrees, since the eye will generally not rotate more than such a range, and within such a time between each consecutive frame of the video stream, the torsional rotation will likely be much less than the 15 degrees. As can be appreciated, in other embodiments, the range of analysis can be limited to a smaller or larger range, if desired.

[0143] The spatially corresponding regions of the first frame and the n^(th)frame can be compared for affine displacement, giving preference to rigid transformations. In one embodiment, only horizontal and vertical displacements are reported by the tracking algorithm.

[0144]FIG. 12 illustrates six images of selected blocks 112, 114. Images 116, 118 are images of blocks 112, 114 in reference image 66. Blocks 120, 122 are the corresponding blocks from the new, real-time frame. Block images 124, 126 are the best transformed block from the first frame that match the target block. From the change in the positional coordinates of the blocks 112, 114, a torsional angle between the first frame and the second frame can be computed. (FIG. 13).

[0145] One exemplary method of calculating the torsional angle between the two selected block images in image frames of the video feed will now be described. If B_(i) is the coordinate of the i^(th) block in the reference frame, X is the pupil center coordinate in the reference frame, and X_(n) is the pupil center coordinate in the n^(th) frame, then the expected coordinates of the blocks in the n^(th) frame are:

B _(in) =B _(i) −X+X _(n).

[0146] The expected pupil center coordinates of the blocks in both frames are:

B _(i) =B _(i) −X

[0147] If D_(i) is the translation vector that aligns the i^(th) block contents between the two frames, the correct block locations in the new frame are:

B′ _(i) =B _(i) −D _(i)

[0148] The angular position of each block in the pupil centered reference frame is described by θ_(i)=tan⁻¹(B_(y)/B_(x)) and the total torsional angle between the n^(th) and the reference frame is:

θ_(n)=mean_(i)(θ′_(i)−θ_(i))

[0149] where θ′_(i) is the angular position of the block in the nth frame and θ_(i) is the angular position of the block in the reference (first) frame.

[0150] It should be noted that in FIGS. 11 and 13, the two frames are at different levels of illumination, but the algorithm of the present invention is robust enough to overcome this difference. In general, if possible, t is preferred to maintain the same level and source of background illumination in the range of camera sensitivity in order to achieve accurate tracking. Typically, the conditions during the laser eye surgery fall into this category and there are very few changes from frame to frame.

[0151] As noted above, one part of the described embodiment of the tracking algorithm is to estimate the motion parameters of a given block or marker. If I is the block in the original frame and J is the spatially corresponding block in a subsequent frame, let x be the pixel coordinates in these blocks. To estimate an affine transformation matrix A and translation vector D, the following equation can be minimized: ${O\left( {A,D} \right)} = {\sum\limits_{x}^{\quad}\left( {{I\left( {{Ax} + D} \right)} - {J(x)}} \right)^{2}}$

[0152] Matrix A can be decomposed into a rotation component and a scale/shear component as follows: $A = {\begin{bmatrix} 0 & \alpha \\ {- \alpha} & 0 \end{bmatrix} + \begin{bmatrix} {sx} & \gamma \\ 0 & {sy} \end{bmatrix}}$

[0153] By estimating the rotation component of the matrix A and the translational vector D, the number of parameters can be reduced from 6 to 3. This approach clarifies between several possible solutions towards the one that has only rigid motion. While scaling and shear may occur as a result of pupil size change, their contribution to motion should be very small.

[0154] A linear system for computing rigid motion parameters is: $\begin{matrix} {{\sum\limits_{x}{\left\lbrack \quad \begin{matrix} {GxGx} & {GxGy} & {GxGr} \\ {GyGx} & {GyGy} & {GyGr} \\ {GrGx} & {GrGy} & {GrGr} \end{matrix} \right\rbrack*\begin{bmatrix} D \\ \alpha \end{bmatrix}}} = {\sum\limits_{x}\begin{bmatrix} {Ho} & {Gx} \\ {Ho} & {Gy} \\ {Ho} & {Gr} \end{bmatrix}}} \\ {{where}\quad} \\ {{{Gx}(x)} = {\frac{\partial\quad}{\partial x}{I(x)}*{w(x)}}} \\ {{{Gy}(x)} = {\frac{\partial\quad}{\partial y}{I(x)}*{w(x)}}} \\ {{{Gr}(x)} = {\left( {{y\frac{\partial\quad}{\partial x}{I(x)}} - {x\frac{\partial\quad}{\partial x}{I(x)}}} \right)*{w(x)}}} \\ {{{Gx}(x)} = {\left( {{I(x)} - {J(x)}} \right)*{w(x)}}} \end{matrix}$

[0155] where w(x) is an optional weighting functions. Because the equations above are approximations, iterative Newton-Raphson minimization can be used to solve the system.

EXPERIMENTAL REGISTRATION RESULTS

[0156] Experimental results for the alignment algorithm which registers the reference image of the patient's eyes with the second image of the patient's eye was obtained using Matlab software. The accuracy of the fit was determined by several factors: (1) the number of point used in the fit (at least half (12) of the reference points had to be used), and (2) the RMS error of the fit (1 degree was the highest RMS error allowed); and (3) a visual inspection of the matching reference points and the measurements taken with protractor were used to confirm the estimate. The original set of experiments was conducted with the laser camera magnification factor of 0.885. All the images of dark-colored eyes gave accurate predictions of the torsion angle by at least one of the methods. However, the light-colored eye did not have sufficient texture at that magnification to have a reliable torsion angle estimate.

[0157] In a second hardware configuration, the magnification factor of the laser's camera was adjusted to match that of the imaging device of the wavefront measurement device, thus eliminating scaling issues. Also, as the resolution of the laser camera increased due to larger magnification factor, more details became visible on the light-colored irises.

[0158] Sixteen eyes (from six people) were photographed with the a CCD of the VISX WaveScan™ camera, while subjects were in the sitting position and with the laser's camera, while subjects were laying down in the surgical chair. The torsional angle was estimated between the two photographs of the same eye of the same subject. FIG. 14 is a torsional angle estimate for two different dark-colored iris eyes. FIG. 15 is a torsional angle estimate for two different light-colored iris.

[0159] The estimates in FIG. 14 are all within ½ degree form each other and the one providing the best fit is the sinusoidal fit with 17 points used and RMS=0.21. In FIG. 15 the estimates are less similar, but the best estimate is again a sinusoidal fit with 13 points and RMS=0.18 that captures the correct match points.

[0160] The line fit criteria is not explicitly evaluated, since it can be thought of as a sinusoidal fit of zero-amplitude. This is simply a result of having 3 parameters in the sinusoidal fit (mean, amplitude and phase) versus one parameter for the line (mean). Therefore, any line fit quality would be worse then the sinusoidal estimates, even if it captures the nature of the data. As mentioned earlier, the line fit estimate of the torsion angle is usually close to the value reported by sinusoidal or possibly a double sinusoidal fit. FIGS. 16A and 16B summarize the results for the data set processed by the algorithm.

[0161] While not required, it is desirable that while capturing the reference image with imaging device 13, the following points should be considered. First, a majority of the iris should be visible so that a minimum width of the iris ring is more then 80 pixels. Second, the focus of the camera should be adjusted so that most of the iris is in focus providing the highest possible texture resolution of the iris ring. Several images can be taken to ensure good quality. Third, images with strong shadows and reflections on the iris should be rejected in order to avoid strong false markers. Finally, images should be saved into a file of type BMP or TIF. Optionally, image names should contain unique name of the subject, left or right indicator for the eye and the ID of the device from which they come (e.g., laser image or wavefront image).

[0162] While capturing the laser image the same reference points should be considered. As such, the illumination when obtaining the wavefront image should be the same when obtaining the image with the laser camera. Applicants have found that dark-colored eyes have more rich texture under the infrared illumination and light-colored eyes have more rich texture under visible light. The striated trabecular meshwork of elastic pectinate ligament (anterior layer) creates a predominant texture under visible light. For the near infrared light, deeper slower modulated stromal features dominate the iris pattern. See for example Daugman, J. “High confidence visual recognition of persons by a test of statistical independence,” IEEE Transactions of Pattern Analysis and Machine Intelligence, vol. 15(11), pp 1148-1161 (1993).

[0163] Image quality may also be degraded by LED reflections. However, because illumination is required, it may be unavoidable to have several LED reflections on the iris. These features can be handled by the algorithm as described above. These reflections, however, can greatly degrade the image quality. As shown in FIG. 17A, the shadow makes it impossible to discern any texture of the right side of the iris. As a result, as shown in the FIG. 17B, the alignment data obtained from the image in FIG. 17A was rejected due to the large RMS factor (i.e., above 1). Therefore, the alignment algorithm of the present invention can have an internal quality of fit check that automatically rejects bad data.

[0164] In order to make the alignment system work under real surgical conditions, the system should be robust to noise and distortions introduced by cutting and lifting of the LASIK flap, dried surface of the cornea and other factors. In order to achieve this robustness, three additional steps can be added to the alignment algorithm. A first step was to mark the expected position of the LASIK flap as an invalid region, preventing the algorithm from selecting reference blocks in that area of the iris. A second step is to apply band-pass filtering to the unwrapped iris images. The convolution kernel was set to be the difference of 2-D Gaussian distributions with standard deviations equal to 3 and 12 pixels. A third step was the introduction of bi-directional alignment, when the blocks were selected and matched from the wavefront device to the laser and from the laser to the wavefront device. This essentially doubled the number of data points used for sinusoidal fitting.

[0165] Another difference in the matching was implemented as a special case for LASIK procedures. Instead of using LSE metric for block matching, a normalized correlation was used as a match criteria. This method was found to be more appropriate given different contrast levels of the wavefront image and the laser image of the eye with its flap lifted.

EXPERIMENTAL TORSIONAL TRACKING RESULTS

[0166] To test the torsional tracking algorithm, the algorithm was run through several tests. The first set of results using the methods and software of the present invention to track the torsional movement of the patient's eye involved artificial rotation of an image of a video frame from the laser surgical system's camera 20. The image was rotated by 1 degree counter-clockwise for each subsequent frame. A total of 15 rotated frames were analyzed by the torsional tracking algorithm. The original frame and final frame are illustrated in FIGS. 18A and 18B, respectively. Application of the torsional tracking algorithm were accurate for every frame to a precision of within 0.2 degrees from its actual value.

[0167] The second set of results comes from a 500-frame sequence capturing 25 seconds of real video of an eye. Several variables were tracked during the video processing: pupil center position, pupil radius, torsional angle, and error estimates for the two blocks tracked for each frame. The sequence was also visually inspected to verify the black match and the overall eye torsion. The zero^(th) frame (FIG. 19A) was used as a reference with two 31×31 pixel blocks marked for tracking. The last frame shows the same blocks at the appropriate locations. (FIG. 19B). FIGS. 20-23 show the data extracted from the video sequence. FIG. 20 shows the pupil position over time. FIG. 21 shows the change of the pupil radius from frame 0 to 500. FIG. 22 illustrates errors per frame/block. FIG. 23 shows the torsional angle of the markers (relative to the first frame of the video).

[0168] The algorithm was tested to see the effect of the delay between the block selection and tracking initialization. This was accomplished by skipping the first 344 frames of the video sequence. FIG. 24 depicts the tracking results for the 30-frame sequence starting with the 345^(th) frame. The data shows that the algorithm jumped to correct position and correctly tracked the blocks throughout the video sequence to within ¼ degree precision compared to the original torsional data. Skipping video frames is often required to give time to the torsional alignment algorithm to establish the rotational angle between the reference image and the second image (e.g., first frame of the video sequence).

[0169] A third set of data was obtained by reducing the frame rate by a factor of two. FIG. 25 shows the torsional data extracted from the slower acquired sequence. Such data, still matches the measurement extracted from the normal frame rate sequence illustrated in FIG. 23.

[0170] In order to test the accuracy of the torsional alignment (e.g., registration of the reference image with the first image of the video stream) and torsional tracking together, as well as the algorithm's ability to automatically select the blocks of texture in the reference image to track, the following test was performed. A video sequence of several hundred frames was captured under the laser with the torsional camera. Several seconds prior to the video sequence acquisition, a snapshot of the eye was taken through the laser camera. The iris image obtained from the wavefront measurement camera was aligned and registered with the snapshot image and the first frame of the video sequence. The alignment results using the “sine-method” between the wavefront measurement position of the iris and the first image of the video sequence was 0.04 degrees counterclockwise. (FIG. 26A). Alignment to the snapshot image was 0.80 degrees clockwise. (FIG. 26B).

[0171] The torsional tracking algorithm was engaged using the two images (snapshot and wavefront image) as a reference. The measurement of the torsional eye movements with respect to the reference image is depicted in FIGS. 27A and 27B. Estimated torsional angle reference to the first image of the video sequence (FIG. 27A) closely resembled the one referenced to the snapshot (FIG. 27B), with the exception of the constant offset of about 0.5 degrees counterclockwise. The total angle of rotation with respect to the wavefront image is computed as follows:

θ_(total)(t)=Tracking[(reference image, video](t)+Alignment[Wavefront reference image]

[0172] Therefore, for the above example, θ_(first video image)−0.04=θ_(snapshot)+0.80, where the alignment angle has a sign notation of clockwise being positive. The difference between the two estimates is shown in FIG. 28.

[0173] From the data, it can be estimated that the mean of the difference, μ=0.4 degrees, and the standard deviation, σ=0.12 degrees. All of the error values for every video frame are less than one degree in magnitude. The mean shows the difference in the total alignment angle and its value is less than 1 degree, which is the specified tolerance for this one exemplary embodiment. It should be appreciated however, that other embodiments may have a tolerance that is more than 1 degree or less than 1 degree.

[0174] The standard deviation shows that tracking different texture patches from different images has very small effect on the total torsional angle estimates. FIGS. 29A and 29B show two different torsional angle estimates that include the alignment with the wavefront measurement image. The reference frames for the two estimates were 0.41 degrees clockwise 134 (FIG. 29A) and 1.17 degrees clockwise 136 (FIG. 29A). The errors between the estimates are shown in FIG. 29B as a function of the frame number. As in previous tests, the errors do not exceed 1 degree for any frame.

[0175] It should be appreciated by a person of ordinary skill in the art that the above alignment and tracking algorithms are merely examples of some algorithms that can be used to align the images of the eyes and track the torsional rotation of the patient's eye, and other algorithms, using different methodologies can be used without departing from the spirit of the present invention.

[0176] While all the above is a complete description of the preferred embodiments of the inventions, various alternatives, modifications, and equivalents may be used. For example, while the above description has been described in the context of laser eye surgery, the above concepts may be useful in tracking the position and orientation of an eye for use in identification systems. Although the foregoing invention has been described in detail for purposes of clarity of understanding, it will be obvious that certain modifications may be practiced within the scope of the appended claims. 

What is claimed is:
 1. A method of registering a first image of an eye with a second image of the eye, wherein the first image and second image comprise at least a portion of a pupil and iris, the method comprising: selecting at least one marker on the iris of the eye in the first image; locating a corresponding marker on the iris in the second image; registering the first image of the eye and the second image of the eye by substantially matching a common reference point in the first and second images and matching the marker on the iris of the image of the first eye and the marker on the iris of the image of the second eye; and centering and torsionally aligning a laser treatment with the second image of the eye.
 2. The method of claim 1 wherein the common reference point is a pupil center.
 3. The method of claim 1 wherein the common reference point is defined by a function of a pupil center and an iris center.
 4. The method of claim 1 further comprising locating a pupil center, an iris center and an iris boundary, wherein selecting at least one marker comprises finding the position of the marker relative to at least one of the iris center and pupil center.
 5. The method of claim 1 comprising smoothing at least one of the first image and second image.
 6. The method of claim 1 comprising unwrapping the iris in the first image and the second image.
 7. The method of claim 6 wherein unwrapping comprises converting from Cartesian coordinates to polar coordinates.
 8. The method of claim 6 comprising dividing the unwrapped iris into sectors.
 9. The method of claim 8 wherein dividing comprises creating 24 sectors, wherein each sector covers 15 degrees.
 10. The method of claim 8 wherein the sectors comprise 24 sectors or more.
 11. The method of claim 8 wherein the sectors comprise 24 sectors or less.
 12. The method of claim 8 wherein the markers are high contrast iris patches, wherein selecting comprises locating the high-contrast iris patches within each sector.
 13. The method of claim 12 comprising extracting properties from each high contrast iris patch.
 14. The method of claim 1 wherein locating the marker in the second image comprises limiting a range of search to within 15 degrees or less from a position of the marker in the first image of the eye.
 15. The method of claim 1 wherein selecting comprises drawing artificial landmarks on the first image of the eye.
 16. The method of claim 1 comprising obtaining the first image with a first camera and obtaining the second image with a second camera.
 17. The method of claim 1 wherein the second image is a frame from a video stream.
 18. The method of claim 1 comprising estimating a torsional angular displacement between the markers in the first image and the second image.
 19. The method of claim 18 wherein estimating the torsional angular displacement comprises correcting for elliptical shaped pupils.
 20. The method of claim 18 wherein estimating a torsional angular displacement comprises fitting the estimated torsional rotation with an iterative weighted function to correct for sinusoidal distortions.
 21. The method of claim 1 further wherein selecting comprises locating a plurality of markers on the iris.
 22. A method of tracking a torsional orientation of an eye during laser eye surgery, the method comprising: locating a reference point in a first image of the eye; identifying at least one marker in the first image of the eye; locating the reference point in a second image of the eye, wherein the second image of the eye is obtained when the eye is aligned with a laser beam; identifying a corresponding marker in the second image of the eye; estimating a cyclotorsional rotation of the eye between the first image and second image by comparing the orientation of the at least one markers relative to the reference point in the first image and the second image; and aligning a laser treatment with the second image of the eye.
 23. The method of claim 22 comprising: locating the reference point in an Nth image of the eye; identifying the corresponding marker in the Nth image of the eye; and estimating a cyclotorsional rotation of the eye between an N-1^(th) image and the Nth image by comparing the orientation of the markers relative to the reference point in the Nth and N-1^(th) images.
 24. The method of claim 23 wherein the Nth and N-1^(th) images are images from a video stream.
 25. The method of claim 22 comprising limiting a search for identifying the at least one marker in the second image to a predetermined range from a torsional orientation of the marker in the first image.
 26. The method of claim 25 wherein the predetermined range is approximately 15 degrees.
 27. The method of claim 22 wherein locating at least one marker in the first image of the eye comprises finding a high contrast patch in the iris.
 28. The method of claim 22 wherein locating at least one marker in the first image of the eye comprises placing an artificial marker on the eye.
 29. The method of claim 21 wherein identifying the at least one marker comprises locating a plurality of markers in the first image and second image, wherein estimating the cyclotorsional rotation comprises averaging the angular offset of the plurality of markers in the first image with the corresponding markers in the second image.
 30. The method of claim 22 comprising adjusting a delivery of a laser treatment to compensate for the cyclotorsional rotation of the eye.
 31. The method of claim 22 wherein the common reference point comprises at least one of a pupil center and an iris center.
 32. A method of performing laser eye surgery, the method comprising: measuring a wavefront measurement of the eye; obtaining a first image of the eye during the measuring of the wavefront measurement; generating a laser treatment for the eye based on the wavefront measurement; registering a second image of an eye under an optical axis of a laser beam with the first image; centering the laser treatment with the eye under the optical axis of the laser beam; monitoring a position and torsional orientation of the eye relative to the laser beam during the laser treatment; and adjusting a delivery of the laser treatment to compensate for changes of the position and torsional orientation of the eye.
 33. The method of claim 32 wherein registering comprises matching markers in the first image with corresponding markers in the second image, wherein monitoring comprises tracking a position and orientation of the markers relative to a common reference point.
 34. The method of claim 33 wherein the reference point is a pupil center.
 35. The method of claim 33 wherein the reference point is defined by a function of a pupil center and an iris center.
 36. The method of claim 33 wherein the markers are located in the iris of the eye.
 37. The method of claim 33 wherein registering comprises locating at least one of an iris center and a pupil center in the first and second images.
 38. A laser surgery system comprising: a computer processor configured to receive a first image of an eye and at least one of a wavefront measurement and an ablation pattern for the eye; an eye tracker coupled to the computer processor that tracks a position of the eye under an optical axis of a laser beam; and a torsional tracker coupled to the computer processor that tracks a torsional orientation of the eye, wherein the computer processor is configured to adjust a delivery of the ablation pattern based on a change of position and/or torsional orientation of the eye.
 39. The system of claim 38 wherein the first image of the eye was taken during the wavefront measurement, wherein the computer processor is configured to register the first image with a real-time image of the eye under the optical axis of the laser beam.
 40. The system of claim 38 comprising a laser coupled to the computer processor and configured to deliver the ablation pattern to the eye.
 41. The system of claim 38 comprising a wavefront measuring device that obtains that wavefront measurement.
 42. The system of claim 41 wherein the wavefront measurement device comprises an imaging assembly that obtains the first image of the eye.
 43. The system of claim 38 further comprising an imaging device coupled to the torsional tracker that obtains an image of the eye under an optical axis of a laser beam.
 44. A system for registering a first image of an eye with a second image of an eye, the system comprising: a computer processor configured to receive a first image of an eye; an imaging device coupled to the computer processor that can obtain a second image of the eye; wherein the computer processor is configured to locate a common reference point in the first and second image of the eye and locate at least one marker in the first image and find a corresponding marker in the second image, wherein the computer processor registers the first and second image by substantially matching the reference point and markers of the first and second image.
 45. The system of claim 44 wherein the reference point comprises at least one of a pupil center and an iris center.
 46. The system of claim 44 comprising a wavefront measurement device that obtains a wavefront measurement of the eye, wherein the wavefront measurement device comprises an imaging assembly that obtains the first image of the eye during obtaining of the wavefront measurement.
 47. The system of claim 44 comprising a laser assembly coupled to the computer processor for delivering a laser beam treatment to the eye.
 48. The system of claim 44 wherein the imaging device is positioned so as to image the eye when the eye is positioned along an optical axis of the laser beam.
 49. The system of claim 44 wherein the computer processor is configured to estimate a cyclotorsional rotation of the eye between the first image and second image.
 50. A system for registering a first image of an eye with a second image of the eye, the system comprising: means for obtaining the first image; means for obtaining the second image of the eye, wherein the first image and second image comprise at least a portion of a pupil and iris; means for selecting at least one marker on the iris of the eye in the first image; means for locating the at least one marker on the iris in the second image; and means for substantially matching a common reference point in the first and second images and estimating the torsional rotation between the marker in the iris of the first eye and the marker in the iris of the second eye. 